package com.shun.monitor;

import de.codecentric.boot.admin.server.config.EnableAdminServer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@Slf4j
@SpringBootApplication
@EnableAdminServer
public class ShunMonitorApp {

    public static void main(String[] args) {
        log.info("监控微服务启动中...");
        SpringApplication shunMonitor = new SpringApplication(ShunMonitorApp.class);
        shunMonitor.setBannerMode(Banner.Mode.OFF);
        ApplicationContext context = shunMonitor.run(args);
        log.info("监控微服务启动成功，端口：9009");
    }
}
